package com.xuecheng.api.media;


import com.xuecheng.api.media.model.qo.QueryMediaModel;
import com.xuecheng.api.media.model.vo.MediaAuditVO;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@Api(value = "媒资管理-运营 Api", tags = "媒资管理-运营",
        description = "媒资管理-运营")
public interface MediaAuditApi {


    @ApiOperation("课程基础信息条件分页查询-运营")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "model",
                    value = "课程基本信息查询条件",
                    required = true,
                    dataType = "QueryMediaModel",
                    paramType = "body")
    })
    PageVO queryMediaList(PageRequestParams params, QueryMediaModel model);


    @ApiOperation("媒资审核-运营")
    @ApiImplicitParam(name = "vo", value = "审核结果", required = true, dataType = "MediaAuditVO", paramType = "body")
    void approve(MediaAuditVO vo);

    @ApiOperation("媒资审核-预览媒资")
    @ApiImplicitParam(name = "mediaId", value = "媒资id", required = true, dataType = "Long", paramType = "path")
    Object preview(Long mediaId);
}
